package com.texplose.mapper;

import com.texplose.entity.Category;
import com.texplose.entity.Recipe;
import com.texplose.entity.vo.CategoryParentPickerVo;
import com.texplose.entity.vo.CategoryParentVo;
import com.texplose.entity.vo.IndexCardsVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CategoryMapper {
    List<Category> getRootCategory();

    CategoryParentVo getChildrenById(Integer id);

    List<CategoryParentVo> getCategoryList();

    void deleteCategoryById(@Param("id") Integer id);

    void insertCategory(@Param("category") Category category);

    void updateCategory(@Param("category") Category category);

    List<IndexCardsVo> getCategoryDetail(Integer id);

    List<CategoryParentPickerVo> getCategoryPicker();
}
